// import com.alibaba.druid.sql.ast.SQLObjectImpl;
// import com.alibaba.druid.sql.visitor.SQLASTVisitor;
#pragma once
#include "../SQLObjectImpl.h"
#include "SQLAlterTableItem.h"

class SQLAlterTableAddConstraint : virtual public SQLObjectImpl ,virtual public SQLAlterTableItem
{
public:
  SQLConstraint_ptr constraint;
  BOOL_ptr withNoCheck;

  SQLAlterTableAddConstraint();

  SQLAlterTableAddConstraint(SQLConstraint_ptr constraint);
  SHAREDOBJECT(SQLAlterTableAddConstraint);

  // @Override
  void accept0(SQLASTVisitor_ptr visitor);

  SQLConstraint_ptr getConstraint();

  void setConstraint(SQLConstraint_ptr constraint);

  BOOL_ptr isWithNoCheck();

  void setWithNoCheck(BOOL_ptr withNoCheck);
};
